---
title: Groups2.Add Method (Project)
ms.prod: project-server
api_name:
- Project.Groups2.Add
ms.assetid: fc4d6dfc-87b5-b4fb-5bbb-5e3b0a47c142
ms.date: 06/08/2017
---


# Groups2.Add Method (Project)

Adds a  **[Group2](group2-object-project.md)** object to a **Groups2** collection.


## Syntax

 _expression_. **Add**( ** _Name_**, ** _FieldName_** )

 _expression_ An expression that returns a **Groups2** object.


### Parameters



|**Name**|**Required/Optional**|**Data Type**|**Description**|
|:-----|:-----|:-----|:-----|
| _Name_|Required|**String**|The name of the group.|
| _FieldName_|Required|**String**|The name of the field being grouped by.|

### Return Value

 **Group2**


## See also


#### Concepts


[Groups2 Collection Object](groups2-object-project.md)

